import { Injectable } from '@angular/core';

@Injectable()
export class RedirectionService {

  constructor() { }

  setRedirectUrl(redirectUrl: string, authorizeUrl: string) {
    localStorage.setItem('seed_redirectUrl', redirectUrl);
    location.href = authorizeUrl;
  }

  getRedirectUrl(): string {
    return localStorage.getItem('seed_redirectUrl');
  }
}
